﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace commodity.Models
{
    public class FirstsCommodityMenu
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        [MaxLength(32)]
        [Required]
        public string Name { get; set; }
        public ICollection<SecondCommodityMenu> SecondCommodityMenus { get; set; } = new List<SecondCommodityMenu>();
    }
}
